import request from '@/utils/http.js'

// 获取上传凭证
export const getPolicy = () => {
  return request({
    url: 'oss/backend/policy',
    method: "GET",
  })
}

// 删除单个图片
export const deletePicture = (name) => {
  return request({
    url: 'oss/backend/delete',
    method: "DELETE",
    params: {
      name
    }
  })
}